package cn.iocoder.yudao.module.mzt.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CategoryRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3708")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "父ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "126")
    @ExcelProperty("父ID")
    private Long parentId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("名称")
    private String name;
    @Schema(description = "事件", example = "0")
    @ExcelProperty("事件")
    private Integer event;
    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "类型", converter = DictConvert.class)
    @DictFormat("mzt_category_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String type;

    @Schema(description = "图标")
    @ExcelProperty("图标")
    private String icon;

    @Schema(description = "封面图")
    @ExcelProperty("封面图")
    private String cover;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("mzt_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "路由地址")
    @ExcelProperty("路由地址")
    private String path;

    @Schema(description = "推荐", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "推荐", converter = DictConvert.class)
    @DictFormat("mzt_recommend") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer recommend;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "描述", example = "随便")
    @ExcelProperty("描述")
    private String remark;

    @Schema(description = "文章数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1630")
    @ExcelProperty("文章数量")
    private Long articleCount;

    @Schema(description = "浏览总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "31311")
    @ExcelProperty("浏览总数")
    private Long viewCount;

    @Schema(description = "点赞总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "8419")
    private Long likeCount;

    @ExcelProperty("分类按钮类型")
    @Schema(description = "分类按钮类型")
    private String categoryType;

    @Schema(description = "SEO标题")
    @ExcelProperty("SEO标题")
    private String seoTitle;

    @Schema(description = "SEO关键词")
    @ExcelProperty("SEO关键词")
    private String seoKeywords;

    @Schema(description = "SEO描述", example = "随便")
    @ExcelProperty("SEO描述")
    private String seoDescription;

    @Schema(description = "层级", example = "0")
    private Integer level;
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
